<?php
/*----------------------------------------------------------------------
 * 后台主界面
 * Author: ming.nie
----------------------------------------------------------------------*/

namespace Admin\Controller;
use Think\Controller;
class IndexController extends AdminController
{
    public function index()
    {
        //当前用户信息
        $userLogic = new \Common\Logic\UserLogic();
        $user_info = $userLogic->getCurrentUserInfo();
        
        cookie('musc', 31, 999999);
        
        //市场部，默认主页，跳到申请列表
        if(3 == $user_info['group_id']) {
            header('Location: '.U('Apply/applyList', array('musc'=>67, 'mmusc'=>1)));
        } else {
            header('Location: '.U('Cinema/cinemaList', array('musc'=>54, 'mmusc'=>52)));
        }
        
        $this->assign(get_defined_vars());
        $this->display('index');
    }
}